package com.foxit.pdf.dao;


public class PDF2Bin{	
	public static native long NewConvertor();
	public static native void SetDestPath(long cvt,byte[] destPath);
	public static native int StartConvert(long cvt,byte[] file_pdf,byte[] password);
	public static native int GetPageCount(long cvt);
	public static native void GetDocData(long cvt, long binBuf);
	public static native boolean GenerateDocDataFile(long cvt);
	public static native void GetPageData(long cvt, long binBuf,int iPage);
	public static native boolean GeneratePageDataFile(long cvt,int iPage);
	public static native int Convert(long cvt,boolean bSplit);
	public static native void CloseConvert(long cvt);
	
	public static native long NewBinBuf();
	public static native int GetBinBufLen(long binBuf);
	public static native byte[] GetBinBuf(long binBuf);
	public static native void FreeBinBuf(long binBuf);
	
	public static native long CreateModuleMgr();
	public static native void DestroyModuleMgr(long mgr);
	/********************************************************/
//	public static native int NewConvertor();
//	public static native void SetDestPath(int cvt,byte[] destPath);
//	public static native int StartConvert(int cvt,byte[] file_pdf,byte[] password);
//	public static native int GetPageCount(int cvt);
//	public static native void GetDocData(int cvt, int binBuf);
//	public static native boolean GenerateDocDataFile(int cvt);
//	public static native void GetPageData(int cvt, int binBuf,int iPage);
//	public static native boolean GeneratePageDataFile(int cvt,int iPage);
//	public static native int Convert(int cvt,boolean bSplit);
//	public static native void CloseConvert(int cvt);
//	
//	public static native int NewBinBuf();
//	public static native int GetBinBufLen(int binBuf);
//	public static native byte[] GetBinBuf(int binBuf);
//	public static native void FreeBinBuf(int binBuf);
////	
//	public static native int CreateModuleMgr();
//	public static native void DestroyModuleMgr(int mgr);
	/********************************************************/
//	 int NewConvertor();
//	 void SetDestPath(int cvt,byte[] destPath);
//	 int StartConvert(int cvt,byte[] file_pdf,byte[] password);
//	 int GetPageCount(int cvt);
//	 void GetDocData(int cvt, int binBuf);
//	 boolean GenerateDocDataFile(int cvt);
//	 void GetPageData(int cvt, int binBuf,int iPage);
//	 boolean GeneratePageDataFile(int cvt,int iPage);
//	 int Convert(int cvt,boolean bSplit);
//	 void CloseConvert(int cvt);
//	
//	 int NewBinBuf();
//	 int GetBinBufLen(int binBuf);
//	 byte[] GetBinBuf(int binBuf);
//	 void FreeBinBuf(int binBuf);

}
